﻿<%@ Page Title="تقرير قائمة الانتظار" Language="C#" MasterPageFile="~/MasterPages/Report.Master"
    AutoEventWireup="true" CodeBehind="WaitingList.aspx.cs" Inherits="Pap.Web.Modules.Reports.Views.WaitingList" %>

<%@ MasterType VirtualPath="~/MasterPages/Report.Master" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ReportParamsPlaceHolder" runat="server">
    <ext:Store ID="strProjects" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="ProjectID">
                <Fields>
                    <ext:RecordField Name="ProjectID" />
                    <ext:RecordField Name="ProjectName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strCommittee" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="CommitteeID">
                <Fields>
                    <ext:RecordField Name="CommitteeID" />
                    <ext:RecordField Name="CommitteeName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store runat="server" ID="strReport">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="DisplayName" />
                    <ext:RecordField Name="NumberOfLoans" />
                    <ext:RecordField Name="TotalAmount" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:FormLayout ID="FormLayout1" runat="server">
        <ext:Anchor Horizontal="95%">
            <ext:MultiSelect runat="server" AllowBlank="false" ID="lstCommitte" StoreID="strCommittee"
                DisplayField="CommitteeName" ValueField="CommitteeID" TypeAhead="true" Editable="true"
                FieldLabel="اللجان">
            </ext:MultiSelect>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:MultiSelect runat="server" StoreID="strProjects" ID="lstProjects" DisplayField="ProjectName"
                ValueField="ProjectID" TypeAhead="true" Editable="true" FieldLabel="المشاريع"
                AllowBlank="false">
            </ext:MultiSelect>
        </ext:Anchor>
    </ext:FormLayout>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ReportBodyPlaceHolder" runat="server">
    <div class="r-container">
        <header>
            <div class="logo">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Assets/Images/PAPLogo.jpg" />
            </div>
            <div class="title">
                <%= this.Page.Title %>
            </div>
        </header>
        <div>
            <ext:DataView ID="DataView1" runat="server" StoreID="strReport" SingleSelect="true"
                ItemSelector="tr.row" EmptyText="<div class='x-r-emptyText'>No Data To Display</div>">
                <Template>
                    <html>
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                               <th>
                                    Stage
                               </th>
                               <th>
                                    Number of Customers
                               </th>
                               <th>
                                    Total Loans Amount
                               </th>
                            </tr>
                            <tpl for=".">
                                <tr class="row">
                                    <td>
                                        {DisplayName}
                                    </td>
                                    <td>
                                        {NumberOfLoans}
                                    </td>
                                    <td>
                                        {TotalAmount}
                                    </td>
                                </tr>
                            </tpl>
                        </table>
                    </html>
                </Template>
            </ext:DataView>
        </div>
        <footer>
        </footer>
    </div>
</asp:Content>
